package com.brooks.demo;

/**
 * 单例模式 饿汉式
 *
 * @Author: mihutu
 * @Date: 2020/10/11 21:47
 */

public class DemoSingleton1 {
    private static final DemoSingleton1 singleton = new DemoSingleton1();

    private DemoSingleton1() {

    }

    public static DemoSingleton1 getInstance() {
        return singleton;
    }
}
